package com.danco.training.zaneuskaya.repository;

import java.util.Date;
import java.util.List;

import org.hibernate.HibernateException;

import com.danco.training.zaneuskaya.domain.City;
import com.danco.training.zaneuskaya.domain.Country;
import com.danco.training.zaneuskaya.domain.Event;

/**
 * @author Zaneuskaya Aliaksandra
 *
 */
public interface EventDao extends GenericDao<Event, Integer> {

	public List<Event> findEventsByTitle(String title)
			throws HibernateException;

	public List<Event> findEventsByPeriod(Date from, Date to)
			throws HibernateException;

	public List<Event> findEventsByCountry(Country country)
			throws HibernateException;

	public List<Event> findEventsByCity(City city) throws HibernateException;

}
